<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理的新增或编辑页面</title>
</head>
<body>
	<style type="text/css">
		td{
		  padding-top: 10px;
		  line-height:30px
		}
	</style>
	<script type="text/javascript">
		$(function(){
			$('#rcc').combobox({    
			    url:'${ctx}/role/find',    
			    valueField:'id',    
			    textField:'name'   
			});  
			$('#dcc').combobox({    
			    url:'${ctx}/dept/find',    
			    valueField:'id',    
			    textField:'name'   
			});  
		});
	</script>
	<form id="userForm">
		<table style="width: 100%;
		font-size: 12px;margin-top: 10px">
			<c:if test="${m.id != null}">
				<input type="hidden" name="id" value="${m.id}"/>
			</c:if>
			<tr>
				<td width="100px" align="right" >登录名：</td>
				<td>
					
					<input value="${m.loginName }" 
					<c:if test="${m.loginName != null}">readonly</c:if>
					 class="easyui-textbox" name="loginName" value=""
					data-options="
						width:200,
						height:30,
						required:true
					">
				</td>
			</tr>
			<tr>
				<td width="100px" align="right">姓名：</td>
				<td>
					<input  value="${m.userName }" class="easyui-textbox" name="userName" value=""
					data-options="
						width:200,
						height:30,
						required:true,
						validType:'chs'
					">
				</td>
			</tr>
			<tr>
				<td width="100px" align="right">部门名称：</td>
				<td>
					<input id="dcc" name="deptId" value="${m.deptId }" class="easyui-textbox" data-options="
						width:200,
						height:30,
						editable:false,
						required:true
					">
				</td>
			</tr>
			<tr>
				<td width="100px" align="right">角色名称：</td>
				<td>
					<input id="rcc" name="roleId" value="${m.roleId }" class="easyui-textbox" data-options="
						width:200,
						height:30,
						editable:false,
						required:true
					">
				</td>
			</tr>
			<tr>
				<td width="100px" align="right">手机号码：</td>
				<td>
					<input value="${m.phone }" class="easyui-textbox" name="phone" value="" data-options="
						width:200,
						height:30,
						required:true
					">
				</td>
			</tr>
			<tr>
				<td width="100px" align="right" valign="top">家住地址：</td>
				<td>
					<input class="easyui-textbox" data-options="
						width:200,
						height:150,
						multiline:true
					">
				</td>
			</tr>
		</table>
	</form>   
</body>
</html>